When a notification becomes expanded, it's either already shown,
or in the process of being shown. Don't set the state to SHOWING
again, which confuses our state machine.
} else if (this._notification.y != expandedY) {
// Tween also opacity here, to override a possible tween that's
// currently hiding the notification.
- this._tween(this._notificationWidget, '_notificationState', State.SHOWN,
- { y: expandedY,
- opacity: 255,
- time: ANIMATION_TIME,
- transition: 'easeOutQuad'
- });
+ Tweener.addTween(this._notificationWidget,
+ { y: expandedY,
+ opacity: 255,
+ time: ANIMATION_TIME,
+ transition: 'easeOutQuad'
+ });
}
},